import React, { memo } from 'react'


import { Provider } from 'react-redux';
import store from './store';

import { renderRoutes } from 'react-router-config';
import { HashRouter } from 'react-router-dom';
import HKAppHeader from './component/app-header';

import routes from './router'

const App = memo(() => {
  return (
    <Provider store={store}>
      <HashRouter>
        <HKAppHeader />
        {
          renderRoutes(routes)
        }
      </HashRouter>
    </Provider>
  )
})

export default App;